package com.ilop.sthome.mvp.contract.message;

import com.example.common.mvp.IBasePresenter;
import com.example.common.mvp.IBaseView;
import com.ilop.sthome.data.greenDao.DeviceShareBean;

import java.util.List;

/**
 * @author skygge
 * @Date on 2020-02-19.
 * GitHub：javofxu@github.com
 * email：skygge@yeah.net
 * description：
 */
public interface ShareContract {

    interface IView extends IBaseView{

        void showShareList(List<DeviceShareBean> shareList);

        void showNoSharer();

        void showToastMsg(String msg);

        void dismissProgress();
    }

    interface IPresent extends IBasePresenter<IView>{

        void getShareNoticeList();

        void getSharerList(List<DeviceShareBean> mList);

        void addSharer(String iotId);

        void shareDevicesAndScenes(String iotId, String account, String type);

        void cancelShare(String recordId);

        void confirmShare(String recordId);

        void onConfirmUnbind(String iotId, String id);

        void clearShareNoticeList();
    }
}
